<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <title>网站设置--公众号设置</title>

    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

   
    <!-- page specific plugin styles -->
    <script src="__PUBLIC__/admin/js/jquery.min.js"></script>
    <script src="__PUBLIC__/admin/js/lodash.min.js"></script>
    <script src="__PUBLIC__/admin/js/moment.min.js"></script>
    <script src="__PUBLIC__/admin/js/zh-cn.js"></script>
    <script src="__PUBLIC__/admin/js/numeral.min.js"></script>
    <script src="__PUBLIC__/admin/js/toastr.min.js"></script>
    <script src="__PUBLIC__/admin/js/cookies.js"></script>
    <script src="__PUBLIC__/admin/js/knockout-min.js"></script>
    <script src="__PUBLIC__/admin/js/knockout.mapping.min.js"></script>
    <script src="__PUBLIC__/admin/js/bootstrap-datetimepicker.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.unobtrusive.min.js"></script>
    <script src="__PUBLIC__/admin/js/clipboard.min.js"></script>
    <script src="__PUBLIC__/admin/js/select2.min.js"></script>
    <script src="__PUBLIC__/admin/js/admin.js"></script>
    <script>
      moment.locale('zh-cn');
      toastr.options.positionClass = 'toast-bottom-right';
    </script>
    <!-- ace settings handler -->
    <script src="__PUBLIC__/admin/js/ace-extra.min.js"></script>

<link media="all" href="__PUBLIC__/admin/css/index14.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/admin/css/glyphicons-halflings-regular.css">
</head>
<body class="no-skin">

    <!-- #section:basics/navbar.layout -->
    <include file="./Public/gong/title.html" />

    <div class="main-container" id="main-container">
      <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
      </script>

      <div id="sidebar" class="sidebar responsive">
          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
          </script>

<include file="./Public/gong/list.html" />
          <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
          </div>

          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
          </script>
      </div>

      <!-- /section:basics/sidebar -->
      <div class="main-content">


        <div class="breadcrumbs" id="breadcrumbs">
          <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
          </script>

          <ul class="breadcrumb">
            <li>
              <i class="ace-icon fa fa-home home-icon"></i>
              <a    href="__APP__/Admin/Index/index.html">Home</a>
            </li>
            <li class="active">公众号设置</li>
          </ul><!-- /.breadcrumb -->

          <!-- /section:basics/content.searchbox -->
        </div>

        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
          <div class="page-content-area">
            <div class="row">
              <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->

                <!--/span-->
                <!-- left menu ends -->



<div style="margin-bottom: 30px;">
    <ul class="nav nav-tabs">
         <li><a href="{:U('Setting/index')}">网站设置</a></li> 
         <li ><a href="{:U('Setting/protocol')}">协议设置</a></li> 
         <li ><a href="{:U('Setting/userprotocol')}">用户协议</a></li> 
        <li class="active"><a href="{:U('Setting/set_signal')}">公众号设置</a></li>
        <li class=""><a href="__URL__/join_signal.html">公众号接入</a></li>
    </ul>
</div>
<form id="main-form" class="form-horizontal" novalidate="novalidate" action="{:U('Setting/wechat_update')}" method="POST">
<!--    <div class="form-group">
        <label class="control-label col-sm-3">类型</label>
        <div class="col-sm-9">
            <label class="radio-inline">
                <input name="webname" checked="checked" type="radio">
                <span>网站名称</span>
            </label>
        </div>
    </div>-->
<!--    <div class="form-group">
        <label class="control-label col-sm-3">原始ID</label>
        <div class="col-sm-9">
            <input name="oldid" class="col-sm-5 col-xs-10" data-bind="value: raw_id" data-val="true" data-val-required="请输入原始ID" data-val-regex="原始ID格式有误" data-val-regex-pattern="^gh_\w+$" value="{$wechat['oldid']}" type="text">
            <p class="help-block help-block-error col-sm-7 col-xs-10" data-valmsg-for="raw_id" data-valmsg-replace="true"></p>
            <p class="help-block help-block-error col-sm-10 col-xs-10" style="color: red; padding-left: 0px;">
                注意: 上线后请不要更改公众号，否则会影响先前的粉丝，如需换号请申请开新号
            </p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">微信号</label>
        <div class="col-sm-9">
            <input name="wxnumber" class="col-sm-5 col-xs-10" data-bind="value: username" value="{$wechat['wxnumber']}" type="text" data-val-required="请输入微信号" data-val="true">
            <p class="help-block help-block-error col-sm-7 col-xs-10" data-valmsg-for="username" data-valmsg-replace="true"></p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">昵称</label>
        <div class="col-sm-9">
            <input name="wxnickname" class="col-sm-5 col-xs-10" data-bind="value: nickname" data-val="true" data-val-required="请输入昵称" value="{$wechat['wxnickname']}" type="text">
            <p class="help-block help-block-error col-sm-7 col-xs-10" data-valmsg-for="nickname" data-valmsg-replace="true"></p>
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-sm-3">App ID</label>
        <div class="col-sm-9">
            <input name="appid" class="col-sm-5 col-xs-10" data-bind="value: app_id" data-val="true" data-val-required="请输入 App ID" value="{$wechat['appid']}" type="text">
            <p class="help-block help-block-error col-sm-7 col-xs-10" data-valmsg-for="app_id" data-valmsg-replace="true"></p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">App Secret</label>
        <div class="col-sm-9">
            <input name="appsecret" class="col-sm-5 col-xs-10" data-bind="value: app_secret" data-val="true" data-val-required="请输入 App Secret" value="{$wechat['appsecret']}" type="text">
            <p class="help-block help-block-error col-sm-7 col-xs-10" data-valmsg-for="app_secret" data-valmsg-replace="true"></p>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-3">js调用分享接口域名</label>
        <div class="col-sm-9">
            <input name="jsurl" class="col-sm-5 col-xs-10" data-bind="value: app_secret" data-val="true" data-val-required="" value="{$wechat['jsurl']}" type="text">
            <p class="help-block help-block-error col-sm-7 col-xs-10" data-valmsg-for="jsurl" data-valmsg-replace="true"></p>
            <span>不要加http</span>
        </div>
        
    </div>
<div class="form-group">
        <label class="control-label col-sm-3">跳转域名</label>
        <div class="col-sm-9">
            <input name="serurl" class="col-sm-5 col-xs-10" data-bind="value: app_secret" data-val="true" data-val-required="" value="{$wechat['serurl']}" type="text">
            <p class="help-block help-block-error col-sm-7 col-xs-10" data-valmsg-for="serurl" data-valmsg-replace="true"></p>
            <span>不要加http,不用加前缀</span>
        </div>
        
    </div>
    <div class="clearfix form-actions">
        <div class="col-md-offset-3 col-md-9">
            <button type="submit" class="btn btn-info" data-bind="click: submit, disable: submitting">保存</button>
        </div>
    </div>
</form>
                               
                <!-- PAGE CONTENT ENDS -->
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.page-content-area -->
</div><!-- /.page-content -->
</div><!-- /.main-content -->

        </div><!-- /.main-container -->

        <!-- basic scripts -->

     <!--    <script type="text/javascript">
            if('ontouchstart' in document.documentElement) document.write("<script src='http://novel.818tu.com/static/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
        </script> -->
        <script src="__PUBLIC__/admin/js/bootstrap.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.webui-popover.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.ui.widget.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.fileupload.min.js"></script>

        <!-- page specific plugin scripts -->

        <!-- ace scripts -->
        <script src="__PUBLIC__/admin/js/ace-elements.min.js"></script>
        <script src="__PUBLIC__/admin/js/ace.min.js"></script>

        <!-- inline scripts related to this page -->

        <!-- the following scripts are used in demo only for onpage help and you don't need them -->


  <!--       <script type="text/javascript"> ace.vars['base'] = 'http://novel.818tu.com/static'; </script> -->
        <script src="__PUBLIC__/admin/js/elements.onpage-help.js"></script>
        <script src="__PUBLIC__/admin/js/ace.onpage-help.js"></script>


</body>
</html>
